package verappdesktop.utils;

import java.util.Map;

import verappdesktop.core.Variable;

public class VariableDataSet {
	private Variable var;
	private Map<Double,Double> data;
	
	@SuppressWarnings("unused")
	private VariableDataSet(){}
	
	public VariableDataSet(Variable var, Map<Double,Double> values){
		this.var = var;
		data = values;
	}
	
	public Map<Double,Double> getData(){
		return data;
	}
	
	public Variable getVariable(){
		return var;
	}
	
	@Override
	public boolean equals(Object o){
		if (o instanceof VariableDataSet){
			VariableDataSet dataset = (VariableDataSet)o;
			return dataset.data.equals(data);
		}
		else{
			return false;
		}
	}
}
